package com.fitbet.wechat.handler.api;

import java.util.List;
import com.demo2do.core.entity.result.HttpResult;
import com.fitbet.entity.bet.UserBet;
import com.fitbet.entity.user.Wallet;

/**
 * 
 * @author mohanlan
 *
 */
public interface UserApiHandler {
    
    /**
     * load wallet by userid
     * 
     * @param userId
     * @return
     */
    public Wallet loadWallet(Long userId);
    
    /**
     * 
     * @param userId
     * @param betId
     * @return
     */
    public UserBet loadUserBet(Long userId, Long betId);
    
    /**
     * 
     * @param bet
     * @param user
     * @return
     */
    public HttpResult createUserBet(Long userId, Long betId); 
    
    /**
     * 
     * @param userId
     * @return
     */
    public List<Object> listBets(Long userId);
    
    /**
     * 
     * @param userId
     * @return
     */
    public List<Object> listSupports(Long userId);

}
